<%@ page import="top.lbqaq.pojo.Product" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/jsp/common/head.jsp" %>
<%Product product= (Product) request.getAttribute("product");%>

    <div class="row">
        <div class="card-body">
<%--            <form>--%>
    <form class="form-horizontal" action="${pageContext.request.contextPath}/product?type=xiu1&id=${product.id}" method="post">
        <%String way1= (String) request.getAttribute("msg");
            if("更新".equals(way1)){%>
        <font color="black" size="5" face="宋体" >现在在进行修改操作</font>
        <%}if("插入".equals(way1)){%>
        <font color="black" size="5" face="宋体" >现在在进行增加操作</font>
        <%}%>
        <div class="form-group">
            <label for="Category1" class="col-sm-2 control-label" >类别1</label>
            <div class="col-sm-10">
            <input type="text" name="Category1" class="form-control" id="Category1" value="${product.productCategory2} ">
            </div>
        </div>
        <div class="form-group">
            <label for="Category2" class="col-sm-2 control-label" >类别2</label>
            <div class="col-sm-10">
                <input type="text" name="Category2" class="form-control" id="Category2" value="${product.productCategory1} ">
            </div>
        </div>
        <div class="form-group">
            <label for="No" class="col-sm-2 control-label" >编号</label>
            <div class="col-sm-10">
                <input type="text" name="No" class="form-control" id="No" value="${product.productNo} ">
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label" >名称</label>
            <div class="col-sm-10">
                <input type="text" name="name" class="form-control" id="name" value="${product.productName}">
            </div>
        </div>
        <div class="form-group">
            <label for="unit" class="col-sm-2 control-label" >单位</label>
            <div class="col-sm-10">
                <input type="text" name="unit" class="form-control" id="unit" value="${product.productUnit} ">
            </div>
        </div>
        <div class="form-group">
            <label for="picture" class="col-sm-2 control-label" >图片</label>
            <div class="col-sm-10">
                <input type="text" name="picture" class="form-control" id="picture" value="${product.productPicture} ">
            </div>
        </div>
        <div class="form-group">
            <label for="remark" class="col-sm-2 control-label" >备注</label>
            <div class="col-sm-10">
                <input type="text" name="remark" class="form-control" id="remark" value="${product.productRemark}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="submit" class="btn btn-primary" value="确定修改"/>
<%--                <a style="margin-top:5px;" href="${pageContext.request.contextPath}/product?type=xiu1&id=<%=product.getId()%>" class="btn btn-primary btn-sm" >修改</a>--%>
            </div>
        </div>
    </form>
    </div>
</div>
</div>
<%@include file="/jsp/common/footer.jsp"%>